import request from '@/utils/request'

export function getToken (data) {
  return request({
    url: '/v01/pre/apply/encrypt',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: data
  })
}

export function register (data) {
  return request({
    url: '/v01/pre/apply/register',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: data
  })
}

export function login (data) {
  return request({
    url: '/v01/pre/apply/login',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    data: data
  })
}

export function getAllBrand () {
  return request({
    url: '/v01/brands/getall',
    method: 'get'
  })
}

